<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>知识库</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body { width: 360px; height: 640px; margin: 0; overflow-y: auto; }
    </style>
</head>
<body class="bg-gray-50">
    <div class="bg-white border-b p-4 sticky top-0">
        <h1 class="text-xl font-bold mb-3">知识库</h1>
        <div class="bg-gray-100 rounded-lg p-2 flex items-center">
            <i class="fas fa-search mr-2 text-gray-500"></i>
            <input type="text" placeholder="搜索知识..." class="bg-transparent border-none outline-none flex-1">
        </div>
    </div>

    <div class="p-4 pb-20">
        <div class="bg-white rounded-lg p-4 mb-3 shadow-sm">
            <div class="flex items-start mb-2">
                <i class="fas fa-lightbulb text-yellow-500 text-xl mr-3 mt-1"></i>
                <div class="flex-1">
                    <h3 class="font-semibold text-gray-800 mb-1">React Hooks 最佳实践总结</h3>
                    <p class="text-sm text-gray-600 mb-2">useState、useEffect、useCallback 等核心 Hooks 的使用技巧和注意事项...</p>
                    <div class="flex items-center text-xs text-gray-500">
                        <span class="mr-3"><i class="far fa-calendar mr-1"></i>3天前</span>
                        <span class="bg-green-100 text-green-600 px-2 py-1 rounded">学习</span>
                    </div>
                </div>
            </div>
        </div>

        <div class="bg-white rounded-lg p-4 mb-3 shadow-sm">
            <div class="flex items-start mb-2">
                <i class="fas fa-bug text-red-500 text-xl mr-3 mt-1"></i>
                <div class="flex-1">
                    <h3 class="font-semibold text-gray-800 mb-1">支付接口超时问题解决方案</h3>
                    <p class="text-sm text-gray-600 mb-2">通过增加重试机制和优化数据库查询，将超时率从15%降低到2%...</p>
                    <div class="flex items-center text-xs text-gray-500">
                        <span class="mr-3"><i class="far fa-calendar mr-1"></i>1周前</span>
                        <span class="bg-blue-100 text-blue-600 px-2 py-1 rounded">工作</span>
                    </div>
                </div>
            </div>
        </div>

        <div class="bg-white rounded-lg p-4 mb-3 shadow-sm">
            <div class="flex items-start mb-2">
                <i class="fas fa-database text-blue-500 text-xl mr-3 mt-1"></i>
                <div class="flex-1">
                    <h3 class="font-semibold text-gray-800 mb-1">数据库索引优化经验</h3>
                    <p class="text-sm text-gray-600 mb-2">针对慢查询的分析方法和索引设计原则...</p>
                    <div class="flex items-center text-xs text-gray-500">
                        <span class="mr-3"><i class="far fa-calendar mr-1"></i>2周前</span>
                        <span class="bg-purple-100 text-purple-600 px-2 py-1 rounded">后端</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="fixed bottom-0 left-0 right-0 bg-white border-t flex justify-around py-2">
        <a href="#" class="flex flex-col items-center text-gray-400 py-1">
            <i class="fas fa-home text-xl mb-1"></i>
            <span class="text-xs">主页</span>
        </a>
        <a href="#" class="flex flex-col items-center text-gray-400 py-1">
            <i class="fas fa-tasks text-xl mb-1"></i>
            <span class="text-xs">任务</span>
        </a>
        <a href="#" class="flex flex-col items-center text-gray-400 py-1">
            <i class="fas fa-inbox text-xl mb-1"></i>
            <span class="text-xs">收集</span>
        </a>
        <a href="#" class="flex flex-col items-center text-blue-500 py-1">
            <i class="fas fa-book text-xl mb-1"></i>
            <span class="text-xs">知识</span>
        </a>
        <a href="#" class="flex flex-col items-center text-gray-400 py-1">
            <i class="fas fa-user text-xl mb-1"></i>
            <span class="text-xs">我</span>
        </a>
    </div>
</body>
</html>
